﻿@using CodeCamp.Models.EventMgmt
@model EventMgmtUserEditViewModel
@{
    if (Model.UserViewModel != null)
    {
        ViewBag.Title = String.Format("Code Camp | Edit User {0}", Model.UserViewModel.Username);
    }
    else
    {
        ViewBag.Title = "Code Camp | Edit User";
    }
    ViewBag.EventName = "Code Camp";
}
@section headaddon {
<style>
    #UserEmailAddress
    {
        width: 30em;
    }
</style>
}
<h2>Edit User @if (Model.UserViewModel != null) { <text>@Model.UserViewModel.Username</text> }</h2>

@if (Model.UserViewModel != null)
{
    @Html.Partial("PartialViews/UserEditPartial", Model.UserViewModel)
}

@Html.ActionLink("Back to list", "Users")